﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<UI.Data.Categorias>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Alta de una nueva categoria de deporte</h2>

<p>
    <%: Html.ActionLink("Crear Nueva", "Create", null, new { @class = "btn btn-primary" })%>
</p>
<table class="table table-bordered table-striped table-condensed tree-grid grid scrolleable" style="width: 800px; overflow: auto;">
    <tr>
        <th>
            <%: Html.DisplayName("Nombre: ") %>
        </th>
        <th>
            <%: Html.DisplayName("Descripcion: ") %>
        </th>
        <th style="display:none"></th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.Nombre) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Descripcion) %>
        </td>
        <td>
            <%: Html.ActionLink("Editar", "Edit", new { id = item.Id }, new { @class = "btn btn-primary" })%> |
            <%: Html.ActionLink("Eliminar", "Delete", new { id = item.Id }, new { @class = "btn btn-danger" })%>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
